package com.qfedu.user.service.impl;

import java.util.List;

import com.qfedu.user.po.Client;
import com.qfedu.user.po.User;
import com.qfedu.user.dao.userDAO;
import com.qfedu.user.dao.impl.userDaoimpl;
import com.qfedu.user.service.userService;

public class userServiceimpl implements userService {
	userDAO userDao = new userDaoimpl();

	@Override
	public Boolean doLogin(Object[] objects) {
		return userDao.dologin(objects);
	}

	@Override
	public Boolean doVipregister(Object[] objects) {
		// TODO Auto-generated method stub
		return userDao.doVipregister(objects);
	}

	@Override
	public List<Client> doVipselect(Object[] objects) {
		// TODO Auto-generated method stub
		return userDao.doVipSelect(objects);

	}

	@Override
	public boolean doVipDelete(Object[] objects) {
		// TODO Auto-generated method stub
		return userDao.doVipDelete(objects);
	}

	@Override
	public List<User> selectOneById1(Object[] objects) {

		return userDao.selectOneById1(objects);
	}


	


	public Boolean userUpdate(User user) {

		return null;
		/*
		 * int intResult = userDao.userUpdate(User user); if(intResult!=-1){ return
		 * true; }else { return false; } return intResult;
		 */
	}

	public List<Client> selectOneById(Object[] objects) {
		// TODO Auto-generated method stub
		return userDao.doselectOneById(objects);
	}

	@Override
	public Boolean doVipUpdate(Object[] objects) {
		// TODO Auto-generated method stub
		return userDao.doVipUpdateOne(objects);
	}

	@Override
	public boolean doUserRegister(Object[] objects) {
		// TODO Auto-generated method stub
		return userDao.doUserRegister(objects);
		// return false;
	}

	@Override
	public boolean userCheck(String userIdCard2) {
		// TODO Auto-generated method stub
		// return userDao.userCheck(userIdCard2);
		return false;
	}

	
	public boolean doUserDelete(Object[] objects) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public List<User> selectAll() {
	
		return userDao.selectAll();
	}

	@Override
	public User selectOneById3(Object[] objects) {
		
		return userDao.selectOneById3(objects);
	}

}
